def use_if():
    age=16
    if age>18:
        print('可以进网吧')
    else:
        print('buneng')

i=1
sum=0
while i<=100:
    if sum>2000:
        break
    sum +=i
    i+=1
print(sum)
print(i)